package com.likejian.rabbit.topic;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.likejian.rabbit.RabbitConfig;

@Component
@RabbitListener(queues = RabbitConfig.SPRINGBOOT_RABBIT_TOPIC_MESSAGE_QUEUE)
public class TopicMessageReceiver {

    @RabbitHandler
    public void process(String msg) {
        System.out.println("TopicMessageReceiver  : " +msg);
    }

}